package com.budwk.app.sqfw.enums;

import lombok.Getter;

/**
 * 威清路excel表格类型
 */
@Getter
public enum WeiQingMenExcelType {

    NINE_SMALL_DAILY_INSPECTION(1, "九小场所日常排查台账","EXCEL"),
    FIRE_SAFETY_INSPECTION(2, "消防安全重大风险隐患专项排查整治“三清单”","EXCEL"),
    GAS_SAFETY_INSPECTION(3, "燃气安全排查情况统计周报表","EXCEL"),
    GAS_USAGE_AND_STORAGE(4, "夜市摊点、游摊游贩燃气使用、存储情况台账表","EXCEL"),
    GAS_CATERING_USERS(5, "城镇燃气餐饮用户台账表","EXCEL"),
    KEY_UNIT_OF_FIRE_SAFETY(6, "消防安全重点单位台账表","EXCEL"),
    WINTER_TOMORROW_SPRING_HIDDEN(12, "【今冬明春隐患整改图片】台账","EXCEL"),
    WINTER_TOMORROW_SPRING_FIRE_INSPECTION(13, "【今冬明春火灾防控排查整治进度表】台账","EXCEL"),
    THREE_LISTS_OF_SPECIAL_PROJECT(14, "专项排查“三清单”记录","EXCEL"),
    ;

    private final Integer code;
    private final String name;
    private final String type;

    WeiQingMenExcelType(Integer code, String name,String type) {
        this.code = code;
        this.name = name;
        this.type = type;
    }

    /**
     * 通过code获取登录客户端类型
     *
     * @param code
     * @return
     */
    public static String getName(Integer code) {
        for (WeiQingMenExcelType o : WeiQingMenExcelType.values()) {
            if (o.getCode() == code) {
                return o.getName();
            }
        }
        return null;
    }
}
